package cn.edu.bupt.scidata.model.project;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Document(indexName = "project_result_trace", type = "_doc")
public class ElasticSearchProject implements Serializable {

    @Id
    private String id;
    @Field(name = "approval", type = FieldType.Text)
    private String approval;
    @Field(name = "branch", type = FieldType.Text)
    private String branch;
    @Field(name = "conclusion", type = FieldType.Text)
    private String conclusion;
    @Field(name = "deadline", type = FieldType.Long)
    private Long deadline;
    @Field(name = "funding", type = FieldType.Text)
    private String funding;
    @Field(name = "institute", type = FieldType.Text)
    private String institute;
    @Field(name = "keyword", type = FieldType.Text)
    private String keyword;
    @Field(name = "keyword_en", type = FieldType.Text)
    private String keyword_en;
    @Field(name = "manager", type = FieldType.Text)
    private String manager;
    @Field(name = "money", type = FieldType.Float)
    private Float money;
    @Field(name = "origin", type = FieldType.Long)
    private Long origin;
    @Field(name = "summary", type = FieldType.Text)
    private String summary;
    @Field(name = "summary_en", type = FieldType.Text)
    private String summary_en;
    @Field(name = "title", type = FieldType.Text)
    private String title;
    @Field(name = "results", type = FieldType.Integer)
    private Integer results;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getApproval() {
        return approval;
    }

    public void setApproval(String approval) {
        this.approval = approval;
    }

    public String getBranch() {
        return branch;
    }

    public void setBranch(String branch) {
        this.branch = branch;
    }

    public String getConclusion() {
        return conclusion;
    }

    public void setConclusion(String conclusion) {
        this.conclusion = conclusion;
    }

    public Long getDeadline() {
        return deadline;
    }

    public void setDeadline(Long deadline) {
        this.deadline = deadline;
    }

    public String getFunding() {
        return funding;
    }

    public void setFunding(String funding) {
        this.funding = funding;
    }

    public String getInstitute() {
        return institute;
    }

    public void setInstitute(String institute) {
        this.institute = institute;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getKeyword_en() {
        return keyword_en;
    }

    public void setKeyword_en(String keyword_en) {
        this.keyword_en = keyword_en;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public Float getMoney() {
        return money;
    }

    public void setMoney(Float money) {
        this.money = money;
    }

    public Long getOrigin() {
        return origin;
    }

    public void setOrigin(Long origin) {
        this.origin = origin;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getSummary_en() {
        return summary_en;
    }

    public void setSummary_en(String summary_en) {
        this.summary_en = summary_en;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getResults() {
        return results;
    }

    public void setResults(Integer results) {
        this.results = results;
    }
}
